<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <style>
        div{
            width: 100px;
            height: 100px;
            background-color: skyblue;
        }
    </style>
    <div class="box">

    </div>
</body>
</html>
<script src="../common.js"></script>
<script>
//事件对象是事件触发时系统记录事件触发环境信息的对象
//获取方式
    $$('.box').addEventListener('click',function(event){
        //兼容性写法获取事件对象
        let e=event||window.event;
        console.log(e);
        console.log('123');
    })
</script>